#pragma once
#include <iostream>
namespace ljt
{
	#define maxsize 100
	typedef int elemtype;
	typedef struct node
	{
		elemtype elem[maxsize];
		int top;
	}seqstack;
	void initStack(seqstack& st)
	{
		st.top = -1;
	}
	void StackPush(seqstack& st, elemtype x)
	{
		st.elem[++st.top] = x;
	}
	void StackPop(seqstack& st)
	{
		st.top--;
	}
	elemtype StackTop(seqstack& st)
	{
		return st.elem[st.top];
	}
}